package za.co.felixsol.sf.dxf.reader.entity;

import java.util.List;

import za.co.felixsol.sf.dxf.reader.DxfEntities;
import za.co.felixsol.sf.dxf.reader.DxfEntry;
import za.co.felixsol.sf.dxf.reader.DxfProgram;

public class DxfEntityFactory {

	public static DxfEntity createEntity(DxfEntities dxfEntities, DxfEntry dxfEntityType,  List<DxfEntry>entries) {
		if (dxfEntityType.getValue().equals("LINE")) return new Line(dxfEntities, dxfEntityType, entries);
		return new UnhandledEntity(dxfEntities, dxfEntityType, entries);
	}

}
